import { createApp } from 'vue'
import App from './App.vue'
// 引入elementui框架

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入axios
import $axios from "./http/$axios.js"
// 引入路由 
import router from "./router/index.js"
// 引入富文本
import 'tinymce/skins/ui/oxide/skin.css'

// 引入自己的icon库
import '//at.alicdn.com/t/c/font_3919689_zkhcrfy2qfj.js'
const app = createApp(App)
app.use(router)

// import VueAMap from 'vue-amap'
// app.use(VueAMap);
// VueAMap.initAMapApiLoader({
//     key: 'bb653d4085ade31369aadea382147a81',
//     plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
//     v: '1.4.4'
// });

// 引入pinia数据仓库
import { createPinia } from 'pinia'
app.use(createPinia())
app.use($axios)
app.mount('#app')
app.use(ElementPlus)

// 引入全局组件
import Navigation from "./components/Navigation.vue"
import Liucheng from "./components/Liucheng.vue"
import Footer1 from "./components/Footer1.vue"
// 注册全局组件--导航栏
app.component("Navigation", Navigation);
// 注册全局组件--流程
app.component("Liucheng", Liucheng);
// 注册全局组件--页尾
app.component("Footer1", Footer1);

